package com.xinshujia.wxxcx.mapper;

import com.xinshujia.wxxcx.pojos.entity.ProductionLine;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author Cui Han
 * @Date 2024/5/17 13:56
 * @Description: TODO
 * @Version 1.0
 */
@Mapper
public interface ProductionLineMapper {

    @Select("select id, production_name  from production_line where company = #{company}")
    List<ProductionLine> findProductionLine(String company);

    @Select("select company from production_line where id = #{productionLineId}")
    ProductionLine selectCompany(Long productionLineId);
}
